<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Lanugage
 *
 * @author i062261
 */
class Lanugage {

    const ENGLIST = 'en_US';
    const CHINESE = 'zh_CN';

    public $name;
    public $id;

    public function getNativeLanguage();
    public function setNativeLanguage();
    public function getForeignLanguage();
    public function setForeignLanguage();
    /**
     * add one new langage and save it into database
     */
    public function addLanguage($languageData);
    /**
     * getCategory for language, this function will 
     * return root category for current language
     */
    public function getCategory() {
        $category = new BWCategory($this);
        return $category->getRoot();
    }
}
